package com.gl.saasservice.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
/*
*app用户表
 */
@Entity
@Table(name = "saas_app_user")
public class AppUser {
    /*
    *用户Id
     */
    @Id
    private String id;

    /*
     *姓名
     */
    @Column(name = "name", nullable = true)
    private String name;

    /*
     *企业用户id
     */
    @Column(name = "enterprise_user_id", nullable = true)
    private String enterpriseUserId;
    /*
     *手机
     */
    @Column(name = "phone", nullable = true)
    private String phone;
    /*
     *密码
     */
    @Column(name = "password", nullable = true)
    private String password;
    /*
     *盐值
     */
    @Column(name = "salt", nullable = true)
    private String salt;
    /*
     *微信OPENID
     */
    @Column(name = "openid", nullable = true)
    private String openId;
    /*
     *微信昵称
     */
    @Column(name = "nickname", nullable = true,columnDefinition = "mediumblob")
    private byte[] nickName;
    /*
     *身份类型：1 企业用户 2APP用户
     */
    @Column(name = "type", nullable = true)
    private Integer type;

    @Column(name = "card_number", nullable = true)
    private String cardNumber;//身份证号码

    @Column(name = "front_card_number_pic", nullable = true)
    private String frontCardNumberPic;//身份证正面

    @Column(name = "back_card_number_pic", nullable = true)
    private String backCardNumberPic;//身份证背面

    /*
     *实名认证：0未认证 1已认证
     */
    @Column(name = "certification_status", nullable = true)
    private Integer certificationStatus;
    /*
     *状态：0禁用 1启用
     */
    @Column(name = "status", nullable = true)
    private Integer status;
    /*
     *注册时间
     */
    @Column(name = "registration_time", nullable = true)
    private Date registrationTime;

    public String getEnterpriseUserId() {
        return enterpriseUserId;
    }

    public void setEnterpriseUserId(String enterpriseUserId) {
        this.enterpriseUserId = enterpriseUserId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public byte[] getNickName() {
        return nickName;
    }

    public void setNickName(byte[] nickName) {
        this.nickName = nickName;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getCertificationStatus() {
        return certificationStatus;
    }

    public void setCertificationStatus(Integer certificationStatus) {
        this.certificationStatus = certificationStatus;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getRegistrationTime() {
        return registrationTime;
    }

    public void setRegistrationTime(Date registrationTime) {
        this.registrationTime = registrationTime;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public String getFrontCardNumberPic() {
        return frontCardNumberPic;
    }

    public void setFrontCardNumberPic(String frontCardNumberPic) {
        this.frontCardNumberPic = frontCardNumberPic;
    }

    public String getBackCardNumberPic() {
        return backCardNumberPic;
    }

    public void setBackCardNumberPic(String backCardNumberPic) {
        this.backCardNumberPic = backCardNumberPic;
    }
}
